using System;
using FytSoa.Common.Utils;
using System.ComponentModel.DataAnnotations;
using FytSoa.Application.User;
using SqlSugar;

namespace FytSoa.Application.Cm;

/// <summary>
/// 社区点赞
/// </summary>
public class CmPraiseShareDto : AppEntity
{
    /// <summary>
    /// 类型1=点赞2=分享
    /// </summary>
    [Required]
    public int Type { get; set; } = 1;

    /// <summary>
    /// 社区编号
    /// </summary>
    [Required]
    public long CommunityId { get; set; }

    /// <summary>
    /// 用户编号
    /// </summary>
    [Required]
    public long UserId { get; set; }
    
    /// <summary>
    /// 用户
    /// </summary>
    public MemberDto User { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreateTime { get; set; }=DateTime.Now;


}